//
//  ViewController.m
//  test1
//
//  Created by 王威 on 2025/8/6.
//

#import "ViewController.h"
#import "NSObject+A.h"
#import "NSObject+B.h"
#import "B.h"
#import "A.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}

-(void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
    B *temp = [[B alloc] init];
    // 执行顺序  子类B->父类A->子类B分类->父类A分类
    [temp test];
}

@end
